package com.mad.game.view.models;

import java.awt.Dimension;
import java.awt.Point;

import com.mad.game.system.Vector2;

public class ModelBullet extends GameModel {

	public static final int VEL_X = 20, 
							VEL_Y = 0,
							SIZE = 5; 
	
	public final int DAMAGE = 2 ; 
	
	public Vector2 velocity;  
		
	public Vector2 getVelocity() {
		return velocity;
	}

	public void setVelocity(Vector2 velocity) {
		this.velocity = velocity;
	}

	public ModelBullet(Point position) {
		super(position, new Dimension(SIZE, SIZE));
		this.setGravityInfluenced(false);
	}

	@Override
	public void update() {
		super.update();
		this.move(velocity);
	}
	
}
